package com.ww.springboot.system.run;

import org.springframework.boot.context.event.ApplicationFailedEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

/**
 * todo
 *
 * @author wanwei
 * @since 2021-05-09 00:03
 */
@Configuration
@Component
public class ApplicationFailedListener implements ApplicationListener<ApplicationFailedEvent> {

    @Override
    public void onApplicationEvent(ApplicationFailedEvent event) {
        //
        System.out.println("项目启动失败");
    }
}
